﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MoreSetPage : MonoBehaviour
{

    public Button dissolveRoomBtn;
    public Button gameSetBtn;

    void Start()
    {
        dissolveRoomBtn.onClick.RemoveAllListeners();
        dissolveRoomBtn.onClick.AddListener(DissolveRoomBtnClick);
        gameSetBtn.onClick.RemoveAllListeners();
        gameSetBtn.onClick.AddListener(GameSetBtnClick);
    }

    private void DissolveRoomBtnClick()
    {
        MessageManager.GetInstance().SendMsg1220();           //发送解散消息
    }

    private void GameSetBtnClick()
    {
        UIManager.ChangeUI(UIManager.PageState.GameSetPage, (GameObject obj) =>
        {
            obj.GetComponent<GameSetPage>().InformationSetting();
        });
    }
}
